<!DOCTYPE html>
<html lang="en">
<head>
    {% load staticfiles %}
    <meta charset="UTF-8">
    <title>提交成功</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
          integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js"
            integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
            crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
            integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
            crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
            integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
            crossorigin="anonymous"></script>
    <link href="https://cdn.bootcss.com/animate.css/3.7.2/animate.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="{% static 'css/signin.css' %}"/>
    <style>
        body {
            background-color: #f7f7f7;
        }

        .tittle {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-items: center;
            align-items: center;
            text-align: center;
        }

        .footer {
        {#position: fixed;#} bottom: 0;
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-top: 12px;
        {#vertical-align: center;#}

        }

        .footer-p {
            display: flex;
            flex-direction: column;
            font-size: 12px;
            color: #5a6268;
            justify-items: center;
            align-items: center;
        }

        .Calendar-head {
            display: flex;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -ms-flex-pack: center;
            justify-content: center
        }
    </style>
    <style>
        .m-box {
            width: 150px;
            height: 150px;
            position: relative;
            justify-items: center;
            background: #00ED70;
            border-radius: 50%;
        }

        .m-duigou {
            width: 100px;
            height: 50px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -40px 0 0 -50px;
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
            overflow: hidden
        }

        .m-duigou:before, .m-duigou:after {
            content: "";
            position: absolute;
            background: #fff;
            border-radius: 2px
        }

        .m-duigou:before {
            width: 2px;
            height: 50px;
            left: 0;
            -webkit-animation: dgLeft linear 1s 1 both;
            animation: dgLeft 0.5s linear both
        }

        .m-duigou:after {
            width: 100px;
            height: 2px;
            bottom: 0;
            -webkit-animation: dgRight 1s linear 1.5s 1 both;
            animation: dgRight 0.5s linear 0.5s both
        }

        @-webkit-keyframes dgLeft {
            0% {
                top: -100%
            }
            100% {
                top: 0%
            }
        }

        @-webkit-keyframes dgLeft {
            0% {
                top: -100%
            }
            100% {
                top: 0%
            }
        }

        @-webkit-keyframes dgRight {
            0% {
                left: -100%
            }
            100% {
                left: 0%
            }
        }

        @-webkit-keyframes dgRight {
            0% {
                left: -100%
            }
            100% {
                left: 0%
            }
        }
    </style>
</head>
<body>
<div class="container">
    {#导航栏#}
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#">青岛大学假期状态统计</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active">
                    <a class="nav-link" href="#">表单 <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item active">
                    <a class="nav-link" href="../anysis/">统计 <span class="sr-only">(current)</span></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="../index/">退出</a>
                </li>
            </ul>
        </div>
    </nav>
    <div class="row animated fadeInUp">
        <div class="col">
            <div class="tittle">
                <div class="m-box">
                    <div class="m-duigou"></div>
                </div>
                <h1>提交成功！</h1>
            </div>
        </div>
    </div>
    <div class="row animated flipInX">
        <div class="col">
            <div class="Calendar" style="margin-top: 12px">
                <div id="toyear" class="Calendar-head">
                    <div id="idCalendarPre">&lt;</div>
                    <div class="year-month">
                        <span id="idCalendarYear">2018</span>年<span id="idCalendarMonth">6</span>月
                    </div>
                    <div id="idCalendarNext">&gt;</div>
                </div>
                <table border="1px" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr class="tou">
                        <td>日</td>
                        <td>一</td>
                        <td>二</td>
                        <td>三</td>
                        <td>四</td>
                        <td>五</td>
                        <td>六</td>
                    </tr>
                    </thead>
                    <tbody id="idCalendar">
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<footer class="footer">
    <div class="footer-p">
        <p>青岛大学 版权所有 ©2020</p>
        <p>电子邮件：<a href="mailto:ecampus@qdu.edu.cn">ecampus@qdu.edu.cn</a></p>
        <p>青岛大学 智慧校园服务创新协会 提供技术支持</p>

    </div>
</footer>
<script src="{% static 'js/rili.js' %}"></script>
<script language="JavaScript">
    var isSign = false;
    var myday = new Array(); //已签到的数组
    {% for item in timelist %}
        myday[{{ item.index }}] = {{ item.value }};
    {% endfor %}

    var cale = new Calendar("idCalendar", {
        qdDay: myday,
        onToday: function (o) {
            o.className = "onToday";
        },
        onSignIn: function () {

        },
        onFinish: function () {
            $$("idCalendarYear").innerHTML = this.Year;
            $$("idCalendarMonth").innerHTML = this.Month; //表头年份

        }
    });
    $$("idCalendarPre").onclick = function () {
        cale.PreMonth();
    }
    $$("idCalendarNext").onclick = function () {
        cale.NextMonth();
    }
    //添加今天签到
</script>
</body>
</html>